package service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import entity.User;
import mapper.UserMapper;

@Component
public class UserService{
	@Autowired
	UserMapper userMapper;
	
	public void updateUser(int id){
		User user=userMapper.selectById(id);
		user=userMapper.selectById(id);
		userMapper.updateById(user);
	}
}
